<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<%@include file="../../common/headfiles-jquery.jsp" %>
</head>
<body>
	<fieldset>
		<legend>选择步骤</legend>
		<div id="lactions">
			<c:forEach items="${actions}" var="act">
				<label> <input 
				           type="radio" 
				           name="actionName"
						   action="${act.actionId}" 
						   entity="${act.workflowId}" />
					       ${act.actionName}
				</label>
				<c:set var="entityId" value="${act.workflowId}"></c:set>
			</c:forEach>
		</div>
	</fieldset>
<script type="text/javascript">
$(function(){
	var entityId=-1;
	var actionId=-1;
	var actionLength=  ${fn:length(actions)}||0;
	$("#lactions input:radio").bind("click",function(){
		entityId=this.entity;
		actionId=this.action;
	});
	
	$("#archiveBtn").bind("click",function(){
		
		var url = "admin/office/office-manager!viewcollate?workflowId="+entityId+"&actionId="+actionId;
		window.open(url,"myofficewindow");
	});
	
});
</script>	
</body>
</html>